package com.elem.dao;

import com.elem.bean.DeliveryAddress;

import java.util.List;

public interface DeliveryAddressDao {
//    获取用户地址
    public DeliveryAddress getDeliveryAddressById(String daId)throws Exception;
// 保存用户收货地址
    public int saveDeliveryAddress(DeliveryAddress deliveryAddress)throws Exception;
//   获取用户所有的收货地址,查询用户地址
    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId)throws Exception;
//    删除用户地址
    public int removeDeliveryAddress(DeliveryAddress deliveryAddress)throws Exception;
//      更新用户地址
    public int updateDeliveryAddress(DeliveryAddress deliveryAddress)throws Exception;

}
